﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<link href="css/popup.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.js" type="text/javascript"></script>
<script type="text/javascript">
function toreg() {
	parent.tb_remove();
	parent.location.href="register.aspx";
}

function authentication() {
    var email = $('#Member_email').val();
    var pwd = $('#Member_pwd').val();
    //alert(email + pwd)
    var url = "/XmlHttpGate.aspx?cmd=login&langID=2052&email=" + email + "&random=" + new Date().toLocaleString() + "&pwd=" + pwd;
   // alert(url)
    jQuery.ajax({
        url: url,
        dataType: 'json',
        success: function (res) {
           // alert(res)
            if (res.Result) {
                parent.tb_remove();
                parent.location.reload();
            }
            else {
                alert("您未注册或您的帐号密码错误！")
            }
        }
    });
}
</script>
</head>
<body>
<div id="loginmsg">
	<div class="close"><a href="#" onclick="parent.tb_remove();"><img src="images/icon_pop_close.gif" alt="" /></a></div>
    <div id="login">
        <div class="title"><img src="images/pop_title_login.gif" alt="" /></div>
        <form action="" method="post" id="loginform">
        	<ul>
            	<li><input name="" id="Member_email" type="text" /></li>
                <li><input name="" id="Member_pwd" type="password" /></li>
            </ul>
            <dl>
            	<!--<dt><a href="forget.html">忘记密码？</a></dt>-->
                <dd><a href="#" onclick="toreg();">立即注册</a></dd>
            </dl>
            <div class="btn"><input name="" onclick="authentication();" type="button" value="" /></div>
        </form>
    </div>
</div>
</body>
</html>
